
package requests

import (
	"github.com/goravel/framework/contracts/http"
	"github.com/goravel/framework/contracts/validation"
)

type AuxiliaryRequest struct {

	BindingId string `json:"binding_id" form:"binding_id"`

	RelationId string `json:"relation_id" form:"relation_id"`

	Type string `json:"type" form:"type"`

	Other string `json:"other" form:"other"`

	UpdateTime string `json:"update_time" form:"update_time"`

	AddTime string `json:"add_time" form:"add_time"`

}

func (r *AuxiliaryRequest) Authorize(ctx http.Context) error {
	return nil
}

func (r *AuxiliaryRequest) Rules(ctx http.Context) map[string]string {
	return map[string]string{

		"binding_id": "required",

		"relation_id": "required",

		"type": "required",

		"other": "required",

		"update_time": "required",

		"add_time": "required",

	}
}

func (r *AuxiliaryRequest) Messages(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *AuxiliaryRequest) Attributes(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *AuxiliaryRequest) PrepareForValidation(ctx http.Context, data validation.Data) error {
	return nil
}
